package cate.common.table.ins;


import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("主角快照")
public class InstanceRsRow extends ERow {

    @NoteField("名字")
    public String name;

    @NoteField("性别")
    public byte gender;

    @NoteField("头像")
    public int headIcon;

    @NoteField("头像框")
    public int headFrame;

    @NoteField("冒险等级")
    public int level;

    @NoteField("冒险形象id")
    public int avatarId;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("id", -1);
        this.name = xrw.getString("名字");
        this.gender = xrw.getByte("性别", (byte) 0);
        this.headIcon = xrw.getInteger("头像", 1);
        this.headFrame = xrw.getInteger("头像框", 1);
        this.level = xrw.getInteger("冒险等级", 1);
        this.avatarId = xrw.getInteger("冒险形象id", 0);
    }

    @Override
    public void decode() {
    }
}
